package sh.ds.el.service;

import java.util.List;

import sh.ds.el.dto.MenuQueryDto;
import sh.ds.el.entity.MenuVO;
import sh.ds.el.exception.ServiceException;
import sh.ds.el.service.base.ElService;

public interface MenuService extends ElService {

	/**
	 * 根据userId以及queryDto，查询可以展示的menus
	 * 
	 * @param queryDto
	 * @return
	 * @throws ServiceException
	 */
	List<MenuVO> queryMenusByUserIdAndQueryDto(Long userId, MenuQueryDto queryDto) throws ServiceException;
	
	/**
	 * 根据userId，查询1级菜单
	 * 
	 * @param userId
	 * @return
	 * @throws ServiceException
	 */
	List<MenuVO> queryFirstMenusForUser(Long userId) throws ServiceException;
	
}
